<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户列表</title>
</head>
<body>
    <h2>视频列表</h2>
 
    <table border="1">
        <tr>
            <th>名字</th>
            <th>简介</th>
            <th>演员</th>
            <th>图片路径</th>
            <th>上传时间</th>
            <th>视频链接</th>
            <th>点赞数量</th>
            <th>视频状态</th>
            <th>视频类别</th>
            <th>上传者</th>
            <th>头像</th>
            <th>管理</th>
        </tr>
        <c:forEach items="${videoList}" var="video">
            <tr>
                <th>${video.vname}</th>
            	<th>${video.vintroduce}</th>
            	<th>${video.vactor}</th>
            	<th>${video.vimg}</th>
            	<th>${video.vtime}</th>
            	<th>${video.vaddr}</th>
           	 	<th>${video.vtp}</th>
            	<th>${video.vstate}</th>
            	<th>${video.tid}</th>
            	<th>${video.vuid}</th>  
                <td>
                <a href="${pageContext.request.contextPath}/deletevideo.do?vid=${video.vid}">删除</a>
                <a href="${pageContext.request.contextPath}/toupdatevideo.do?vid=${video.vid}">修改</a>
                <a href="${pageContext.request.contextPath}/downloadvideo.do?vaddr=${video.vaddr}">下载视频</a></td>
            </tr>
        </c:forEach>
    </table>
    <br>

  <a href="toaddvideo.do?uid=1">增加视频</a>
</body>
</html>